<html>
<head>
<!-- usamos esta libreria javascript que viene incluida en la descarga --> 
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("open-flash-chart.swf", "my_chart", "550", "200", "9.0.0", "expressInstall.swf", {"data-file":"data-lines-2.php"});

function reload()
{
  tmp = findSWF("my_chart");
  // reload the data:
  //
  x = tmp.reload();
  // to load from a specific URL:
  // you may need to 'escape' (URL escape, i.e. percent escape) your URL if it has & in it
  //
  x = tmp.reload("data-lines-2.php");
  
 //
 // do NOT show the 'loading...' message:
 //
  x = tmp.reload("data-lines-2.php", false);
}

function findSWF(movieName) {
    if (navigator.appName.indexOf("Microsoft")!= -1) {
        return window["ie_" + movieName];
    } else {
        return document[movieName];
    }
}





</script>
 
</head>
<body>
 
<p>Prueba grafica</p>
<a href="" onclick='javascript:reload();'>Recargar</a><br/> 
<div id="my_chart"></div>
 
</body>
</html>
